<?php

class Slide extends AppModel
{
    var $name = 'Slide';
    var $belongsTo = array('Feed' => 
		array('className'   => 'Feed',
			  'conditions'  => '',
			  'order'       => 'order',
			  'foreignKey'  => 'feed_id'
		)
	);
    var $validate = array (
        'title'     => 'notEmpty',
        'body'      => 'notEmpty',
        'duration'  => 'numeric',
        'order'     => 'numeric',
        'feed_id'   => 'notEmpty',
        'show_from' => 'notEmpty',
        'show_till' => 'notEmpty'
    );
}




?>